package com.ych.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/7
 * Time: 15:03
 * Description:
 */
@Component("redisUtil")
public class RedisUtil {
    @Autowired
    @Qualifier("redisHardRedisTemplate")
    private RedisTemplate redisTemplate;

    public RedisTemplate redisTemplate() {
        return redisTemplate;
    }
}
